package com.xdcplus.web.common.utils;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class AsyncThreadPoolExecutor {

    private static ThreadPoolExecutor
        threadPoolExecutor = new ThreadPoolExecutor(1,2,10L, TimeUnit.MINUTES, new ArrayBlockingQueue<>(100));

    public static void asyncExecutor(Runnable executor) {
        threadPoolExecutor.execute(executor);
    }

}
